// 以下文件格式为描述路由的协议格式
// 你可以调整 routerConfig 里的内容
// 变量名 routerConfig 为 iceworks 检测关键字，请不要修改名称

import HeaderFooterLayout from './layouts/HeaderFooterLayout';
import YuJingLayout from './layouts/YuJingLayout';
import ToolsLayout from './layouts/ToolsLayout';
import SuperviseLayout from './layouts/SuperviseLayout';
// import BaseLayout from './layouts/BaseLayout';
// import Tools from './pages/Tools';
import Evaluate from './pages/Evaluate';
import earlyWarning from './pages/earlyWarning';
import BusinessPerformance from './pages/BusinessPerformance';
import FinancialAnalysis from './pages/FinancialAnalysis';
import PublicOpinion from './pages/PublicOpinion';
import CreditRisk from './pages/CreditRisk';
import EInteraction from './pages/EInteraction';
import PublicOpinionWarning from './pages/PublicOpinionWarning';
import Task from './pages/Task';
import SuperviseRisk from './pages/SuperviseRisk';
import OpinionRisk from './pages/OpinionRisk';
// import UserControl from './pages/UserControl';
// import BaseLayout from './layouts/BaseLayout';
import NotFound from './pages/NotFound';
import { registerTheme } from 'echarts';
import RiskWarning from './pages/RiskWarning/RiskWarning';

const routerConfig = [
  {
    path: '/home',
    layout: HeaderFooterLayout,
    component: Evaluate,
  },
  {
    path: '/earlyWarning',
    href: 'https://gdpage.cfbond.com/gdBeta2/#/earlyWarning/creditRisk?secu_code=',
    layout: YuJingLayout,
    component: earlyWarning,
    children: [
      {
        path: 'CreditRisk',
        layout: YuJingLayout,
        component: CreditRisk,
      },
      {
        path: 'PublicOpinionWarning',
        layout: YuJingLayout,
        component: PublicOpinionWarning,
      },
      {
        path: 'Supervise',
        layout: SuperviseLayout,
        component: SuperviseRisk
      },
      {
        path: 'OpinionRisk',
        layout: SuperviseLayout,
        component: OpinionRisk
      },
      {
        path: 'RiskWarning',
        layout: SuperviseLayout,
        component: RiskWarning
      }
    ],
  },
  {
    path: '/Evaluate',
    href: 'https://gdpage.cfbond.com/gdBeta2/#/evaluate/xpCompliance?secu_code=',
    layout: HeaderFooterLayout,
    component: Evaluate,
    children: [
      {
        path: 'BusinessPerformance',
        layout: HeaderFooterLayout,
        component: BusinessPerformance,
      },
      {
        path: 'FinancialAnalysis',
        layout: HeaderFooterLayout,
        component: FinancialAnalysis,
      },
      {
        path: 'PublicOpinion',
        layout: HeaderFooterLayout,
        component: PublicOpinion,
      },
    ],
  },
  {
    path: '/tool',
    href: 'https://gdpage.cfbond.com/gdBeta2/#/tools/marketAnalysis?secu_code=',
    layout: ToolsLayout,
    component: EInteraction,
    children: [
      {
        path: 'EInteraction',
        layout: ToolsLayout,
        component: EInteraction,
      },
    ],
  },
  {
    path: '/report',
    href: 'https://eye.cfbond.com/report/reportList?secu_code=',
    layout: HeaderFooterLayout,
    component: Task,
  },
  {
    path: '/service',
    href: 'https://eye.cfbond.com/provideServices/servicesList?secu_code=',
    layout: HeaderFooterLayout,
    component: Task,
  },
  {
    path: '/favorite',
    href: 'https://eye.cfbond.com/law/list?secu_code=',
    layout: HeaderFooterLayout,
    component: Task,
  },
  {
    path: '/topNews',
    href: 'https://eye.cfbond.com/wealthheadlines/listcontent?secu_code=',
    layout: HeaderFooterLayout,
    component: Task,
  },

  {
    path: '*',
    layout: HeaderFooterLayout,
    component: NotFound,
  },
];

export default routerConfig;
